package com.sh.redistest;

import redis.clients.jedis.Jedis;

/**
 * @ClassName TestPing
 * @Description 测试连接
 * @Author yaoqiang
 * @Date 2020/10/20 13:21
 * @Version 1.0
 */
public class TestPing {
    public static void main(String[] args) {
        Jedis jedis=new Jedis("192.168.55.60",6381);
        //    Jedis jedis=new Jedis("127.0.0.1",6379);
        System.out.println(""+jedis.ping()+jedis.get("k1"));//PONGnull
    }
}
